from masoniteorm.relationships import belongs_to

from application.config import appSettings
from ..base import BaseModel


class TenantDomain(BaseModel):
    __table__ = appSettings.db_prefix + 'tenant_domains'

    @belongs_to('brand_id', 'brand_id')
    def brand(self):
        from .Company import Company
        return Company


__all__ = ['TenantDomain']
